import Layout from '../layout'

/**
 * hidden: true                  如果设置为 true，该项菜单将不会显示在菜单栏中(默认为 false)
 * meta : {
    title: 'title'               菜单名
    icon: 'icon-name'            图标名
    fixed: true                  如果设置为 true，该项 tag 将一直存在 tag 栏中(默认为 false)
  }
 * */

export const asyncRoutes = [
  {
    path: '/function',
    name: '常用功能',
    component: Layout,
    meta: {
      title: '常用功能'
    },
    children: [
      {
        path: 'gisjson',
        name: '空间数据转换',
        component: () => import('../views/Function/gisjson'),
        meta: {
          title: '空间数据转换'
        }
      },
      {
        path: 'import-excel',
        name: 'ImportExcel',
        component: () => import('../views/Function/ImportShape'),
        meta: {
          title: '导入SHAPE'
        }
      }
    ]
  },
  {
    path: '/mapbox',
    name: 'MapBox',
    component: Layout,
    meta: {
      title: 'MapBox'
    },
    children: [
      {
        path: 'mapboxgl_initmap',
        name: '基础地图',
        component: () => import('../views/MapBox/mapboxGL_InitMap'),
        meta: {
          title: '基础地图'
        }
      },
      {
        path: 'mapboxgl_drawmap',
        name: '绘制地图',
        component: () => import('../views/MapBox/mapboxGL_DrawMap'),
        meta: {
          title: '绘制地图'
        }
      },
      {
        path: 'mapboxgl_3dbuilding',
        name: '3D建筑',
        component: () => import('../views/MapBox/mapboxGL_3Dbuilding'),
        meta: {
          title: '3D建筑'
        }
      }
    ]
  },
  {
    path: '/openlayers',
    name: 'Openlayers',
    component: Layout,
    meta: {
      title: 'Openlayers'
    },
    children: [
      {
        path: 'ol_superclustermap',
        name: '聚类',
        component: () => import('../views/OpenLayers/ol_SuperClusterMap'),
        meta: {
          title: '聚类'
        }
      },
      {
        path: 'ol_clipmap',
        name: '按区域裁剪地图',
        component: () => import('../views/OpenLayers/ol_ClipMap'),
        meta: {
          title: '按区域裁剪地图'
        }
      },
      {
        path: 'ol_FeatureEdit',
        name: '要素编辑',
        component: () => import('../views/OpenLayers/ol_FeatureEdit'),
        meta: {
          title: '要素编辑'
        }
      },
      {
        path: 'ol_traffic',
        name: '交通气象',
        component: () => import('../views/OpenLayers/ol_traffic'),
        meta: {
          title: '交通气象'
        }
      }
    ]
  },

  {
    path: '/ArcGIS',
    name: 'ArcGIS',
    component: Layout,
    meta: {
      title: 'ArcGIS'
    },
    children: [
      {
        path: 'arcgismap',
        name: 'ArcGIS地图（3D）',
        component: () => import('../views/ArcGIS/Ags_Home'),
        meta: {
          title: 'ArcGIS地图（3D）'
        }
      },
      {
        path: 'ags_basemap',
        name: '基础地图',
        component: () => import('../components/ArcGIS/Ags_BaseMap'),
        meta: {
          title: '基础地图'
        }
      },

      {
        path: 'ags_drawmap',
        name: '绘制要素',
        component: () => import('../components/ArcGIS/Ags_DrawMap'),
        meta: {
          title: '绘制要素'
        }
      }
    ]
  }

]
